package cn.qyd.javaexception;

public class ThrowDemo {
    public static void main(String[] args) throws Exception{
        int num = 1;
        if(num > 0) {
            System.out.println("是否还会输出");
            throw new Exception("num must be greater zero");
        }
        System.out.println("是否还会输出");

        return;
    }
}
